package buisness_service;

import java.util.ArrayList;
import java.util.List;

public class Depense_mois {

	private Finance_mois finance_mois;
	private List<Depense_jour> depenses_jour;

	public Depense_mois(Finance_mois fin_mois, User user) {
		this.setFinance_mois(fin_mois);
		depenses_jour = new ArrayList<Depense_jour>();

		user.getRapport().get(fin_mois.getIndexFinance_annee())
				.getDepense_annee().getDepenses_mois().add(this);

	}

	public List<Depense_jour> getDepenses_jour() {
		return depenses_jour;
	}

	public void setDepenses_jour(List<Depense_jour> depenses_jour) {
		this.depenses_jour = depenses_jour;
	}

	public Finance_mois getFinance_mois() {
		return finance_mois;
	}

	public void setFinance_mois(Finance_mois finance_mois) {
		this.finance_mois = finance_mois;
	}

}
